import React, { FC } from 'react';
import { Result } from 'antd-mobile';
import { IErrorProps } from '@/interface';

import './index.less';

const Error: FC<IErrorProps> = props => {
  const { img, title, message } = props;

  return (
    <Result className="error-wrap" img={img} title={title} message={message} />
  );
};

export default Error;
